<?php declare(strict_types=1);


namespace App\Model\Entity;

use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Eloquent\Model;


/**
 * 用户@功能表
 * Class Attention
 *
 * @since 2.0
 *
 * @Entity(table="attention", pool="db2.pool")
 */
class Attention extends Model
{
    /**
     * 
     * @Id()
     * @Column()
     *
     * @var int
     */
    private $id;

    /**
     * 数据主键
     *
     * @Column(name="pri_id", prop="priId")
     *
     * @var int
     */
    private $priId;

    /**
     * 1:pri_id表示post_id 2:pri_id表示comment_id
     *
     * @Column()
     *
     * @var int
     */
    private $type;

    /**
     * 被@的用户
     *
     * @Column(name="member_id", prop="memberId")
     *
     * @var int
     */
    private $memberId;


    /**
     * @param int $id
     *
     * @return void
     */
    public function setId(int $id): void
    {
        $this->id = $id;
    }

    /**
     * @param int $priId
     *
     * @return void
     */
    public function setPriId(int $priId): void
    {
        $this->priId = $priId;
    }

    /**
     * @param int $type
     *
     * @return void
     */
    public function setType(int $type): void
    {
        $this->type = $type;
    }

    /**
     * @param int $memberId
     *
     * @return void
     */
    public function setMemberId(int $memberId): void
    {
        $this->memberId = $memberId;
    }

    /**
     * @return int
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @return int
     */
    public function getPriId(): ?int
    {
        return $this->priId;
    }

    /**
     * @return int
     */
    public function getType(): ?int
    {
        return $this->type;
    }

    /**
     * @return int
     */
    public function getMemberId(): ?int
    {
        return $this->memberId;
    }

}
